module.exports = (app) => {
  return {
    async do(req, model) {
      const list = await req(app.mysql);
      list?.map((item) => {
        const item_ = {};
        for (const key in model) {
          item_[model[key]] = item[key];
        }
        return item_;
      });
      return list
    },
  };
};
